package jedis;

import redis.clients.jedis.Jedis;

public class Ping {

    public static void main(String[] args) {
//        Jedis jedis = new Jedis("127.0.0.1", 6379);
        Jedis jedis = JedisUtil.getJedis();

        // ping
        String ping = jedis.ping("Hello World");
        System.out.println(ping); //Hello World

        String ping2 = jedis.ping();
        System.out.println(ping2); //PONG

        jedis.close();
    }

}
